@echo off
msBuild CleanCode.StyleCopCustomRules.sln /t:rebuild
IF ERRORLEVEL 1 GOTO NoCmdLine 
pause
goto Exit

:NoCmdLine
echo. 
echo *****************************************************************
echo You need to execute this command file in a VS2010 command prompt.
echo *****************************************************************
echo.
pause

:Exit